import 'package:flutter/material.dart';
import 'Routes.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {


  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      //去掉debug图片
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: '/', //初始化加载的路由

      //将引入的路由赋值
      onGenerateRoute: onGenerateRoute,
    );
  }
}

